package com.hdoit.kylin.web.studentManager.modelconfig;

import com.hdoit.kylin.web.studentManager.providers.ProjectProvider;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class ExperimentExcelSearchConfig extends ModelMetadataAttributeConfiguration{
	public ExperimentExcelSearchConfig(){

		this.setProperty("projectId")
			.hasAttribute(new DisplayNameAttribute("所属项目"))
			.hasAttribute(new RequiredAttribute("所属项目为必选"))
			.hasAttribute(new DropDownListAttribute(new ProjectProvider()));
		
		this.setProperty("experimentId")
			.hasAttribute(new DisplayNameAttribute("实验表名称"))
			.hasAttribute(new RequiredAttribute("实验表为必选项"));
		
	}
}
